package Utils;

import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import javax.swing.JComboBox;

/**
 * Use it to get all countries, all Languages with English and all<br> language
 * with its language.<br>
 *
 * for example:<br><br> <font color="blue">for</font> (<font
 * color="blue">int</font> i = 0; i < MSJ_Countries.CountrySize(); i++) {<br>
 * <font
 * color="green">ComboBox</font>.addItem(MSJ_Countries.getallCountries().get(i));<br>
 * }<br>
 *
 * @author mohamed Tarek Salama
 * @version 1.2 BETA
 */
public class MSJ_Countries {

    public static final HashMap<String, String> Languages = new HashMap();
    public static final HashMap<String, String> LanguagesX = new HashMap();
    public static final HashMap<String, String> Countries;

    //<editor-fold defaultstate="collapsed" desc=" Languages & Countries ">
    static {
        LanguagesX.put("aa", "Afaraf");
        LanguagesX.put("ab", "Аҧсуа");
        LanguagesX.put("ae", "avesta");
        LanguagesX.put("af", "Afrikaans");
        LanguagesX.put("ak", "Akan");
        LanguagesX.put("am", "አማርኛ");
        LanguagesX.put("an", "Aragonés");
        LanguagesX.put("ar", "العربية");
        LanguagesX.put("av", "авар мацӀ; магӀарул мацӀ");
        LanguagesX.put("ay", "aymar aru");
        LanguagesX.put("az", "azərbaycan dili");
        LanguagesX.put("ba", "башҡорт теле");
        LanguagesX.put("be", "Беларуская");
        LanguagesX.put("bg", "български език");
        LanguagesX.put("bh", "भोजपुरी");
        LanguagesX.put("bm", "bamanankan");
        LanguagesX.put("bn", "বাংলা");
        LanguagesX.put("bo", "བོད་ཡིག");
        LanguagesX.put("br", "brezhoneg");
        LanguagesX.put("bs", "bosanski jezik");
        LanguagesX.put("ca", "Català");
        LanguagesX.put("ch", "Chamoru");
        LanguagesX.put("co", "corsu; lingua corsa");
        LanguagesX.put("cr", "ᓀᐦᐃᔭᐍᐏᐣ");
        LanguagesX.put("cs", "česky; čeština");
        LanguagesX.put("cu", "ѩзыкъ словѣньскъ");
        LanguagesX.put("cv", "чӑваш чӗлхи");
        LanguagesX.put("cy", "Cymraeg");
        LanguagesX.put("da", "dansk");
        LanguagesX.put("de", "Deutsch");
        LanguagesX.put("dv", "ދިވެހި");
        LanguagesX.put("dz", "རྫོང་ཁ");
        LanguagesX.put("ee", "Ɛʋɛgbɛ");
        LanguagesX.put("el", "Ελληνικά");
        LanguagesX.put("en", "English");
        LanguagesX.put("eo", "Esperanto");
        LanguagesX.put("es", "Español");
        LanguagesX.put("et", "eesti; eesti keel");
        LanguagesX.put("eu", "euskara; euskera");
        LanguagesX.put("fa", "فارسی");
        LanguagesX.put("ff", "Fulfulde");
        LanguagesX.put("fi", "suomi; suomen kieli");
        LanguagesX.put("fj", "vosa Vakaviti");
        LanguagesX.put("fo", "Føroyskt");
        LanguagesX.put("fr", "Français; langue française");
        LanguagesX.put("fy", "Frysk");
        LanguagesX.put("ga", "Gaeilge");
        LanguagesX.put("gd", "Gàidhlig");
        LanguagesX.put("gl", "Galego");
        LanguagesX.put("gn", "Avañe'ẽ");
        LanguagesX.put("gu", "ગુજરાતી");
        LanguagesX.put("gv", "Gaelg; Gailck");
        LanguagesX.put("ha", "هَوُسَ");
        LanguagesX.put("he", "עברית");
        LanguagesX.put("hi", "हिन्दी; हिंदी");
        LanguagesX.put("ho", "Hiri Motu");
        LanguagesX.put("hr", "Hrvatski");
        LanguagesX.put("ht", "Kreyòl ayisyen");
        LanguagesX.put("hu", "Magyar");
        LanguagesX.put("hy", "Հայերեն");
        LanguagesX.put("hz", "Otjiherero");
        LanguagesX.put("ia", "Interlingua");
        LanguagesX.put("id", "Bahasa Indonesia");
        LanguagesX.put("ie", "Interlingue");
        LanguagesX.put("ig", "Igbo");
        LanguagesX.put("ii", "ꆇꉙ");
        LanguagesX.put("ik", "Iñupiaq; Iñupiatun");
        LanguagesX.put("io", "Ido");
        LanguagesX.put("is", "Íslenska");
        LanguagesX.put("it", "Italiano");
        LanguagesX.put("iu", "ᐃᓄᒃᑎᑐᑦ");
        LanguagesX.put("ja", "basa Jawa");
        LanguagesX.put("ka", "ქართული");
        LanguagesX.put("kg", "KiKongo");
        LanguagesX.put("ki", "Gĩkũyũ");
        LanguagesX.put("kj", "Kuanyama");
        LanguagesX.put("kk", "Қазақ тілі");
        LanguagesX.put("kl", "kalaallisut; kalaallit oqaasii");
        LanguagesX.put("km", "ភាសាខ្មែរ");
        LanguagesX.put("kn", "ಕನ್ನಡ");
        LanguagesX.put("ko", "Kanuri");
        LanguagesX.put("ks", "коми кыв");
        LanguagesX.put("kw", "Kernewek");
        LanguagesX.put("ky", "кыргыз тили");
        LanguagesX.put("la", "latine; lingua latina");
        LanguagesX.put("lb", "Lëtzebuergesch");
        LanguagesX.put("lg", "Luganda");
        LanguagesX.put("li", "Limburgs");
        LanguagesX.put("ln", "Lingála");
        LanguagesX.put("lo", "ພາສາລາວ");
        LanguagesX.put("lt", "lietuvių kalba");
        LanguagesX.put("lu", "latviešu valoda");
        LanguagesX.put("mg", "Malagasy fiteny");
        LanguagesX.put("mh", "Kajin M̧ajeļ");
        LanguagesX.put("mi", "te reo Māori");
        LanguagesX.put("mk", "македонски јазик");
        LanguagesX.put("ml", "മലയാളം");
        LanguagesX.put("mn", "Монгол");
        LanguagesX.put("mr", "मराठी");
        LanguagesX.put("ms", "Malti");
        LanguagesX.put("my", "ဗမာစာ");
        LanguagesX.put("na", "Ekakairũ Naoero");
        LanguagesX.put("nb", "Norsk bokmål");
        LanguagesX.put("nd", "isiNdebele");
        LanguagesX.put("ne", "नेपाली");
        LanguagesX.put("ng", "Owambo");
        LanguagesX.put("nl", "Nederlands");
        LanguagesX.put("nn", "Norsk nynorsk");
        LanguagesX.put("no", "Norsk");
        LanguagesX.put("nr", "isiNdebele");
        LanguagesX.put("nv", "Diné bizaad; Dinékʼehǰí");
        LanguagesX.put("ny", "chiCheŵa; chinyanja");
        LanguagesX.put("oc", "Occitan");
        LanguagesX.put("oj", "ᐊᓂᔑᓈᐯᒧᐎᓐ");
        LanguagesX.put("om", "Afaan Oromoo");
        LanguagesX.put("or", "ଓଡ଼ିଆ");
        LanguagesX.put("os", "Ирон æвзаг");
        LanguagesX.put("pa", "पाऴि");
        LanguagesX.put("pl", "polski");
        LanguagesX.put("ps", "پښتو");
        LanguagesX.put("pt", "Português");
        LanguagesX.put("qu", "Runa Simi; Kichwa");
        LanguagesX.put("rm", "rumantsch grischun");
        LanguagesX.put("rn", "kiRundi");
        LanguagesX.put("ro", "Română");
        LanguagesX.put("ru", "русский язык");
        LanguagesX.put("rw", "Ikinyarwanda");
        LanguagesX.put("sa", "संस्कृतम्");
        LanguagesX.put("sc", "sardu");
        LanguagesX.put("sd", "Davvisámegiella");
        LanguagesX.put("sg", "yângâ tî sängö");
        LanguagesX.put("si", "සිංහල");
        LanguagesX.put("sk", "slovenčina");
        LanguagesX.put("sl", "slovenščina");
        LanguagesX.put("sm", "gagana fa'a Samoa");
        LanguagesX.put("sn", "chiShona");
        LanguagesX.put("so", "Soomaaliga; af Soomaali");
        LanguagesX.put("sq", "Shqip");
        LanguagesX.put("sr", "српски језик");
        LanguagesX.put("ss", "SiSwati");
        LanguagesX.put("st", "Sesotho");
        LanguagesX.put("su", "Basa Sunda");
        LanguagesX.put("sv", "svenska");
        LanguagesX.put("sw", "Kiswahili");
        LanguagesX.put("ta", "தமிழ்");
        LanguagesX.put("te", "తెలుగు");
        LanguagesX.put("tg", "ไทย");
        LanguagesX.put("ti", "ትግርኛ");
        LanguagesX.put("tk", "Türkmen; Түркмен");
        LanguagesX.put("tl", "Tagalog");
        LanguagesX.put("tn", "Setswana");
        LanguagesX.put("to", "faka Tonga");
        LanguagesX.put("tr", "Türkçe");
        LanguagesX.put("ts", "Xitsonga");
        LanguagesX.put("tt", "Twi");
        LanguagesX.put("ty", "Reo Mā`ohi");
        LanguagesX.put("ug", "Українська");
        LanguagesX.put("ur", "اردو");
        LanguagesX.put("uk", "Ukraïna");
        LanguagesX.put("uz", "Tshivenḓa");
        LanguagesX.put("vi", "Tiếng Việt");
        LanguagesX.put("vo", "Volapük");
        LanguagesX.put("wa", "Walon");
        LanguagesX.put("wo", "Wollof");
        LanguagesX.put("xh", "isiXhosa");
        LanguagesX.put("yi", "ייִדיש");
        LanguagesX.put("yo", "Yorùbá");
        LanguagesX.put("za", "Saɯ cueŋƅ; Saw cuengh");
        LanguagesX.put("zh", "中文 (Zhōngwén), 汉语, 漢語");
        LanguagesX.put("zu", "isiZulu");
        //----------------------------------------------------------------------
        Languages.put("aa", "Afar");
        Languages.put("ab", "Abkhazian");
        Languages.put("ae", "Avestan");
        Languages.put("af", "Afrikaans");
        Languages.put("ak", "Akan");
        Languages.put("am", "Amharic");
        Languages.put("an", "Aragonese");
        Languages.put("ar", "Arabic");
        Languages.put("av", "Avaric");
        Languages.put("ay", "Aymara");
        Languages.put("az", "Azerbaijani");
        Languages.put("ba", "Bashkir");
        Languages.put("be", "Belarusian");
        Languages.put("bg", "Bulgarian");
        Languages.put("bh", "Bihari");
        Languages.put("bm", "Bambara");
        Languages.put("bn", "Bengali");
        Languages.put("bo", "Tibetan");
        Languages.put("br", "Breton");
        Languages.put("bs", "Bosnian");
        Languages.put("ca", "Catalan");
        Languages.put("ch", "Chamorro");
        Languages.put("co", "Corsican");
        Languages.put("cr", "Cree");
        Languages.put("cs", "Czech");
        Languages.put("cu", "Church Slavic");
        Languages.put("cv", "Chuvash");
        Languages.put("cy", "Welsh");
        Languages.put("da", "Danish");
        Languages.put("de", "German");
        Languages.put("dv", "Divehi");
        Languages.put("dz", "Dzongkha");
        Languages.put("ee", "Ewe");
        Languages.put("el", "Greek");
        Languages.put("en", "English");
        Languages.put("eo", "Esperanto");
        Languages.put("es", "Spanish");
        Languages.put("et", "Estonian");
        Languages.put("eu", "Basque");
        Languages.put("fa", "Persian");
        Languages.put("ff", "Fulah");
        Languages.put("fi", "Finnish");
        Languages.put("fj", "Fijian");
        Languages.put("fo", "Faroese");
        Languages.put("fr", "French");
        Languages.put("fy", "Western Frisian");
        Languages.put("ga", "Irish");
        Languages.put("gd", "Scottish Gaelic");
        Languages.put("gl", "Galician");
        Languages.put("gn", "Guaraní");
        Languages.put("gu", "Gujarati");
        Languages.put("gv", "Manx");
        Languages.put("ha", "Hausa");
        Languages.put("he", "Hebrew");
        Languages.put("hi", "Hindi");
        Languages.put("ho", "Hiri Motu");
        Languages.put("hr", "Croatian");
        Languages.put("ht", "Haitian");
        Languages.put("hu", "Hungarian");
        Languages.put("hy", "Armenian");
        Languages.put("hz", "Herero");
        Languages.put("ia", "Interlingua (International Auxiliary Language Association)");
        Languages.put("id", "Indonesian");
        Languages.put("ie", "Interlingue");
        Languages.put("ig", "Igbo");
        Languages.put("ii", "Sichuan Yi");
        Languages.put("ik", "Inupiaq");
        Languages.put("io", "Ido");
        Languages.put("is", "Icelandic");
        Languages.put("it", "Italian");
        Languages.put("iu", "Inuktitut");
        Languages.put("ja", "Japanese");
        Languages.put("ka", "Georgian");
        Languages.put("kg", "Kongo");
        Languages.put("ki", "Kikuyu");
        Languages.put("kj", "Kwanyama");
        Languages.put("kk", "Kazakh");
        Languages.put("kl", "Kalaallisut");
        Languages.put("km", "Khmer");
        Languages.put("kn", "Kannada");
        Languages.put("ko", "Korean");
        Languages.put("ks", "Kashmiri");
        Languages.put("kw", "Cornish");
        Languages.put("ky", "Kirghiz");
        Languages.put("la", "Latin");
        Languages.put("lb", "Luxembourgish");
        Languages.put("lg", "Ganda");
        Languages.put("li", "Limburgish");
        Languages.put("ln", "Lingala");
        Languages.put("lo", "Lao");
        Languages.put("lt", "Lithuanian");
        Languages.put("lu", "Luba-Katanga");
        Languages.put("mg", "Malagasy");
        Languages.put("mh", "Marshallese");
        Languages.put("mi", "Māori");
        Languages.put("mk", "Macedonian");
        Languages.put("ml", "Malayalam");
        Languages.put("mn", "Mongolian");
        Languages.put("mr", "Marathi");
        Languages.put("ms", "Malay");
        Languages.put("my", "Burmese");
        Languages.put("na", "Nauru");
        Languages.put("nb", "Norwegian Bokmål");
        Languages.put("nd", "North Ndebele");
        Languages.put("ne", "Nepali");
        Languages.put("ng", "Ndonga");
        Languages.put("nl", "Dutch");
        Languages.put("nn", "Norwegian Nynorsk");
        Languages.put("no", "Norwegian");
        Languages.put("nr", "South Ndebele");
        Languages.put("nv", "Navajo");
        Languages.put("ny", "Chichewa");
        Languages.put("oc", "Occitan");
        Languages.put("oj", "Ojibwa");
        Languages.put("om", "Oromo");
        Languages.put("or", "Oriya");
        Languages.put("os", "Ossetian");
        Languages.put("pa", "Panjabi");
        Languages.put("pl", "Polish");
        Languages.put("ps", "Pashto");
        Languages.put("pt", "Portuguese");
        Languages.put("qu", "Quechua");
        Languages.put("rm", "Raeto-Romance");
        Languages.put("rn", "Kirundi");
        Languages.put("ro", "Romanian");
        Languages.put("ru", "Russian");
        Languages.put("rw", "Kinyarwanda");
        Languages.put("sa", "Sanskrit");
        Languages.put("sc", "Sardinian");
        Languages.put("sd", "Sindhi");
        Languages.put("sg", "Sango");
        Languages.put("si", "Sinhala");
        Languages.put("sk", "Slovak");
        Languages.put("sl", "Slovenian");
        Languages.put("sm", "Samoan");
        Languages.put("sn", "Shona");
        Languages.put("so", "Somali");
        Languages.put("sq", "Albanian");
        Languages.put("sr", "Serbian");
        Languages.put("ss", "Swati");
        Languages.put("st", "Southern Sotho");
        Languages.put("su", "Sundanese");
        Languages.put("sv", "Swedish");
        Languages.put("sw", "Swahili");
        Languages.put("ta", "Tamil");
        Languages.put("te", "Telugu");
        Languages.put("tg", "Tajik");
        Languages.put("ti", "Tigrinya");
        Languages.put("tk", "Turkmen");
        Languages.put("tl", "Tagalog");
        Languages.put("tn", "Tswana");
        Languages.put("to", "Tonga");
        Languages.put("tr", "Turkish");
        Languages.put("ts", "Tsonga");
        Languages.put("tt", "Tatar");
        Languages.put("ty", "Tahitian");
        Languages.put("ug", "Uighur");
        Languages.put("ur", "Urdu");
        Languages.put("uk", "Ukrainian");
        Languages.put("uz", "Uzbek");
        Languages.put("vi", "Vietnamese");
        Languages.put("vo", "Volapük");
        Languages.put("wa", "Walloon");
        Languages.put("wo", "Wolof");
        Languages.put("xh", "Xhosa");
        Languages.put("yi", "Yiddish");
        Languages.put("yo", "Yoruba");
        Languages.put("za", "Zhuang");
        Languages.put("zh", "Chinese");
        Languages.put("zu", "Zulu");
        //----------------------------------------------------------------------
        Countries = new HashMap();
        Countries.put("AD", "Andorra");
        Countries.put("AE", "United Arab Emirates");
        Countries.put("AF", "Afghanistan");
        Countries.put("AG", "Antigua And Barbuda");
        Countries.put("AI", "Anguilla");
        Countries.put("AL", "Albania");
        Countries.put("AM", "Armenia");
        Countries.put("AN", "Netherlands Antilles");
        Countries.put("AO", "Angola");
        Countries.put("AQ", "Antarctica");
        Countries.put("AR", "Argentina");
        Countries.put("AS", "American Samoa");
        Countries.put("AT", "Austria");
        Countries.put("AU", "Australia");
        Countries.put("AW", "Aruba");
        Countries.put("AZ", "Azerbaijan");
        Countries.put("BA", "Bosnia And Herzegowina");
        Countries.put("BB", "Barbados");
        Countries.put("BD", "Bangladesh");
        Countries.put("BE", "Belgium");
        Countries.put("BF", "Burkina Faso");
        Countries.put("BG", "Bulgaria");
        Countries.put("BH", "Bahrain");
        Countries.put("BI", "Burundi");
        Countries.put("BJ", "Benin");
        Countries.put("BM", "Bermuda");
        Countries.put("BN", "Brunei Darussalam");
        Countries.put("BO", "Bolivia");
        Countries.put("BR", "Brazil");
        Countries.put("BS", "Bahamas");
        Countries.put("BT", "Bhutan");
        Countries.put("BV", "Bouvet Island");
        Countries.put("BW", "Botswana");
        Countries.put("BY", "Belarus");
        Countries.put("BZ", "Belize");
        Countries.put("CA", "Canada");
        Countries.put("CC", "Cocos (Keeling) Islands");
        Countries.put("CF", "Central African Republic");
        Countries.put("CG", "Congo");
        Countries.put("CH", "Switzerland");
        Countries.put("CI", "Cote d'Ivoire");
        Countries.put("CK", "Cook Islands");
        Countries.put("CL", "Chile");
        Countries.put("CM", "Cameroon");
        Countries.put("CN", "China");
        Countries.put("CO", "Colombia");
        Countries.put("CR", "Costa Rica");
        Countries.put("CU", "Cuba");
        Countries.put("CV", "Cape Verde");
        Countries.put("CX", "Christmas Island");
        Countries.put("CY", "Cyprus");
        Countries.put("CZ", "Czech Republic");
        Countries.put("DE", "Germany");
        Countries.put("DJ", "Djibouti");
        Countries.put("DK", "Denmark");
        Countries.put("DM", "Dominica");
        Countries.put("DO", "Dominican Republic");
        Countries.put("DZ", "Algeria");
        Countries.put("EC", "Ecuador");
        Countries.put("EE", "Estonia");
        Countries.put("EG", "Egypt");
        Countries.put("EH", "Western Sahara");
        Countries.put("ER", "Eritrea");
        Countries.put("ES", "Spain");
        Countries.put("ET", "Ethiopia");
        Countries.put("EU", "Europe (SSGFI only)");
        Countries.put("FI", "Finland");
        Countries.put("FJ", "Fiji");
        Countries.put("FK", "Falkland Islands (Malvinas)");
        Countries.put("FM", "Micronesia, Federated States Of");
        Countries.put("FO", "Faroe Islands");
        Countries.put("FR", "France");
        Countries.put("FX", "France, Metropolitan");
        Countries.put("GA", "Gabon");
        Countries.put("GB", "United Kingdom (UK)");
        Countries.put("GD", "Grenada");
        Countries.put("GE", "Georgia");
        Countries.put("GF", "French Guiana");
        Countries.put("GH", "Ghana");
        Countries.put("GI", "Gibraltar");
        Countries.put("GL", "Greenland");
        Countries.put("GM", "Gambia");
        Countries.put("GN", "Guinea");
        Countries.put("GP", "Guadeloupe");
        Countries.put("GQ", "Equatorial Guinea");
        Countries.put("GR", "Greece");
        Countries.put("GS", "South Georgia And The South Sandwich Islands");
        Countries.put("GT", "Guatemala");
        Countries.put("GU", "Guam");
        Countries.put("GW", "Guinea-Bissau");
        Countries.put("GY", "Guyana");
        Countries.put("HK", "Hong Kong");
        Countries.put("HM", "Heard And Mc Donald Islands");
        Countries.put("HN", "Honduras");
        Countries.put("HR", "Croatia (local name: Hrvatska)");
        Countries.put("HT", "Haiti");
        Countries.put("HU", "Hungary");
        Countries.put("ID", "Indonesia");
        Countries.put("IE", "Ireland");
        Countries.put("II", "International (SSGFI only)");
        Countries.put("IL", "Israel");
        Countries.put("IN", "India");
        Countries.put("IO", "British Indian Ocean Territory");
        Countries.put("IQ", "Iraq");
        Countries.put("IR", "Iran (Islamic Republic Of)");
        Countries.put("IS", "Iceland");
        Countries.put("IT", "Italy");
        Countries.put("JM", "Jamaica");
        Countries.put("JO", "Jordan");
        Countries.put("JP", "Japan");
        Countries.put("KE", "Kenya");
        Countries.put("KG", "Kyrgyzstan");
        Countries.put("KH", "Cambodia");
        Countries.put("KI", "Kiribati");
        Countries.put("KM", "Comoros");
        Countries.put("KN", "Saint Kitts And Nevis");
        Countries.put("KP", "Korea, Democratic People's Republic Of");
        Countries.put("KR", "Korea, Republic Of");
        Countries.put("KW", "Kuwait");
        Countries.put("KY", "Cayman Islands");
        Countries.put("KZ", "Kazakhstan");
        Countries.put("LA", "Lao People's Democratic Republic");
        Countries.put("LB", "Lebanon");
        Countries.put("LC", "Saint Lucia");
        Countries.put("LI", "Liechtenstein");
        Countries.put("LK", "Sri Lanka");
        Countries.put("LR", "Liberia");
        Countries.put("LS", "Lesotho");
        Countries.put("LT", "Lithuania");
        Countries.put("LU", "Luxembourg");
        Countries.put("LV", "Latvia");
        Countries.put("LY", "Libyan Arab Jamahiriya");
        Countries.put("MA", "Morocco");
        Countries.put("MC", "Monaco");
        Countries.put("MD", "Moldova, Republic Of");
        Countries.put("MG", "Madagascar");
        Countries.put("MH", "Marshall Islands");
        Countries.put("MK", "Macedonia, The Former Yugoslav Republic Of");
        Countries.put("ML", "Mali");
        Countries.put("MM", "Myanmar");
        Countries.put("MN", "Mongolia");
        Countries.put("MO", "Macau");
        Countries.put("MP", "Northern Mariana Islands");
        Countries.put("MQ", "Martinique");
        Countries.put("MR", "Mauritania");
        Countries.put("MS", "Montserrat");
        Countries.put("MT", "Malta");
        Countries.put("MU", "Mauritius");
        Countries.put("MV", "Maldives");
        Countries.put("MW", "Malawi");
        Countries.put("MX", "Mexico");
        Countries.put("MY", "Malaysia");
        Countries.put("MZ", "Mozambique");
        Countries.put("NA", "Namibia");
        Countries.put("NC", "New Caledonia");
        Countries.put("NE", "Niger");
        Countries.put("NF", "Norfolk Island");
        Countries.put("NG", "Nigeria");
        Countries.put("NI", "Nicaragua");
        Countries.put("NL", "Netherlands");
        Countries.put("NO", "Norway");
        Countries.put("NP", "Nepal");
        Countries.put("NR", "Nauru");
        Countries.put("NU", "Niue");
        Countries.put("NZ", "New Zealand");
        Countries.put("OM", "Oman");
        Countries.put("PE", "Peru");
        Countries.put("PF", "French Polynesia");
        Countries.put("PG", "Papua New Guinea");
        Countries.put("PH", "Philippines");
        Countries.put("PK", "Pakistan");
        Countries.put("PL", "Poland");
        Countries.put("PM", "St. Pierre And Miquelon");
        Countries.put("PN", "Pitcairn");
        Countries.put("PR", "Puerto Rico");
        Countries.put("PT", "Portugal");
        Countries.put("PW", "Palau");
        Countries.put("PY", "Paraguay");
        Countries.put("QA", "Qatar");
        Countries.put("RE", "Reunion");
        Countries.put("RO", "Romania");
        Countries.put("RU", "Russian Federation");
        Countries.put("RW", "Rwanda");
        Countries.put("SA", "Saudi Arabia");
        Countries.put("SB", "Solomon Islands");
        Countries.put("SC", "Seychelles");
        Countries.put("SD", "Sudan");
        Countries.put("SE", "Sweden");
        Countries.put("SG", "Singapore");
        Countries.put("SH", "St. Helena");
        Countries.put("SI", "Slovenia");
        Countries.put("SJ", "Svalbard And Jan Mayen Islands");
        Countries.put("SK", "Slovakia (Slovak Republic)");
        Countries.put("SL", "Sierra Leone");
        Countries.put("SM", "San Marino");
        Countries.put("SN", "Senegal");
        Countries.put("SO", "Somalia");
        Countries.put("SR", "Suriname");
        Countries.put("ST", "Sao Tome And Principe");
        Countries.put("SV", "El Salvador");
        Countries.put("SY", "Syrian Arab Republic");
        Countries.put("SZ", "Swaziland");
        Countries.put("TC", "Turks And Caicos Islands");
        Countries.put("TD", "Chad");
        Countries.put("TF", "French Southern Territories");
        Countries.put("TG", "Togo");
        Countries.put("TH", "Thailand");
        Countries.put("TJ", "Tajikistan");
        Countries.put("TK", "Tokelau");
        Countries.put("TM", "Turkmenistan");
        Countries.put("TN", "Tunisia");
        Countries.put("TO", "Tonga");
        Countries.put("TP", "East Timor");
        Countries.put("TR", "Turkey");
        Countries.put("TT", "Trinidad And Tobago");
        Countries.put("TV", "Tuvalu");
        Countries.put("TW", "Taiwan, Province Of China");
        Countries.put("TZ", "Tanzania, United Republic Of");
        Countries.put("UA", "Ukraine");
        Countries.put("UG", "Uganda");
        Countries.put("UM", "United States Minor Outlying Islands");
        Countries.put("US", "United States");
        Countries.put("UY", "Uruguay");
        Countries.put("UZ", "Uzbekistan");
        Countries.put("VA", "Vatican City State (Holy See)");
        Countries.put("VC", "Saint Vincent And The Grenadines");
        Countries.put("VE", "Venezuela");
        Countries.put("VG", "Virgin Islands (British)");
        Countries.put("VI", "Virgin Islands (U.S.)");
        Countries.put("VN", "Viet Nam");
        Countries.put("VU", "Vanuatu");
        Countries.put("WF", "Wallis And Futuna Islands");
        Countries.put("WS", "Samoa");
        Countries.put("YE", "Yemen");
        Countries.put("YT", "Mayotte");
        Countries.put("YU", "Yugoslavia");
        Countries.put("ZA", "South Africa");
        Countries.put("ZM", "Zambia");
        Countries.put("ZR", "Zaire");
        Countries.put("ZW", "Zimbabwe");
    }//</editor-fold>

    /**
     *
     * @param paramString
     * @return
     */
    public static String getLanguageCode(String paramString) {
        for (Map.Entry localEntry : Languages.entrySet()) {
            if ((((String[]) localEntry.getValue())[0].equalsIgnoreCase(paramString))
                    || (((String[]) localEntry.getValue())[1].equalsIgnoreCase(paramString))) {
                return (String) localEntry.getKey();
            }
        }
        return null;
    }

    /**
     *
     * @param paramString
     * @return
     */
    public static String getCountryCode(String paramString) {
        for (Map.Entry localEntry : Countries.entrySet()) {
            if (((String) localEntry.getValue()).equalsIgnoreCase(paramString)) {
                return (String) localEntry.getKey();
            }
        }
        return null;
    }

    /**
     *
     * @return
     */
    public static ArrayList<String> getallCountries() {
        ArrayList<String> a = new ArrayList<String>();
        Collection c = Countries.values();
        Iterator it = c.iterator();
        for (int i = 0; i < Countries.size(); i++) {
            a.add(it.next().toString());
        }
        Collections.sort(a);
        return a;
    }

    /**
     *
     * @return
     */
    public static ArrayList<String> getallLanguages() {
        ArrayList<String> a = new ArrayList<String>();
        Collection c = Languages.values();
        Iterator it = c.iterator();
        for (int i = 0; i < Languages.size(); i++) {
            a.add(it.next().toString());
        }
        Collections.sort(a);
        return a;
    }

    /**
     *
     * @return
     */
    public static ArrayList<String> getallLanguagesX() {
        ArrayList<String> a = new ArrayList<String>();
        Collection c = LanguagesX.values();
        Iterator it = c.iterator();
        for (int i = 0; i < LanguagesX.size(); i++) {
            a.add(it.next().toString());
        }
        Collections.sort(a);
        return a;
    }

    /**
     *
     * @return
     */
    public static int CountrySize() {
        return Countries.size();
    }

    /**
     *
     * @return
     */
    public static int LanguagesSize() {
        return Languages.size();
    }

    /**
     *
     * @return
     */
    public static int LanguagesXSize() {
        return LanguagesX.size();
    }

    public void fill_countries(JComboBox jcombobox) {
        for (int i = 0; i < getallCountries().size(); i++) {
            jcombobox.addItem(getallCountries().get(i));
        }
    }
    
    public void fill_languages(JComboBox jcombobox){
        for (int i = 0; i < getallLanguages().size(); i++) {
            jcombobox.addItem(getallLanguages().get(i));
        }
    }
    
    public void fill_languagesX(JComboBox jcombobox){
        for (int i = 0; i < getallLanguagesX().size(); i++) {
            jcombobox.addItem(getallLanguagesX().get(i));
        }
    }
}